/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.client.entity.EntityPlayerSP;
/*    */ import net.minecraft.client.renderer.EntityRenderer;
/*    */ import net.minecraft.util.ResourceLocation;
/*    */ import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
/*    */ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/*    */ import net.minecraftforge.fml.common.gameevent.TickEvent;
/*    */ 
/*    */ @EventBusSubscriber(modid = "dragoncore")
/*    */ public class oo
/*    */ {
/*    */   private static String g;
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"启用着色器"})
/*    */   public static void v(String a) {
/* 18 */     v();
/* 19 */     g = a;
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"关闭着色器"})
/*    */   public static void z() {
/* 24 */     v();
/* 25 */     g = null;
/*    */   }
/*    */ 
/*    */   
/*    */   @SubscribeEvent
/*    */   public static void v(TickEvent.ClientTickEvent a) {
/* 31 */     EntityPlayerSP entityPlayerSP = (Minecraft.func_71410_x()).field_71439_g;
/* 32 */     if (entityPlayerSP == null && g != null) {
/* 33 */       z();
/* 34 */     } else if (entityPlayerSP != null) {
/* 35 */       EntityRenderer entityRenderer = (Minecraft.func_71410_x()).field_71460_t;
/* 36 */       if (entityRenderer != null && g != null && !entityRenderer.func_147702_a()) {
/* 37 */         entityRenderer.func_175069_a(new ResourceLocation("dragoncore", "shaders/post/" + g + ".json"));
/*    */       }
/*    */     } 
/*    */   }
/*    */ 
/*    */   
/*    */   public static void v() {
/* 44 */     EntityRenderer a = (Minecraft.func_71410_x()).field_71460_t;
/* 45 */     a.func_181022_b();
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\oo.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */